package com.zatech.cgnci.project.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author EDY
 * @version 1.0
 * Create by 2024/12/18 17:40
 */
@Data
@ApiModel(value = "CheckSpecialColumnDTO")
public class CheckSpecialColumnDTO {

    @ApiModelProperty("项目id")
    @NotNull(message = "projectId cannot be null")
    private Long projectId;

    @ApiModelProperty("起期")
    @NotNull(message = "startDate cannot be null")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty("止期")
    @NotNull(message = "endDate cannot be null")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    @ApiModelProperty("分入信息-总再保手续费率")
    @NotNull(message = "divideInTotalBrokerCommissionRate cannot be null")
    private BigDecimal divideInTotalBrokerCommissionRate;

    @ApiModelProperty("临分分出信息-总再保手续费率")
    @NotNull(message = "divideOutTotalBrokerCommissionRate cannot be null")
    private BigDecimal divideOutTotalBrokerCommissionRate;


}
